export type PageParams = {
	pageIndex: number;
	pageSize: number;
};

export type SortParams = {
	sortField: string;
	sortType: "asc" | "desc";
};

export type BaseSearchModel<T = object> = Partial<T> & {
	searchText?: string;
};

export type ListSearchModel<T = object> = Partial<BaseSearchModel<T>> &
	Partial<SortParams>;

export type PagedListSearchModel<T = object> = Partial<BaseSearchModel<T>> &
	PageParams &
	Partial<SortParams>;
